package mju.cxf.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import mju.cxf.dto.AdminDTO;
import mju.cxf.dto.AdminLoginDTO;
import mju.cxf.dto.ResetPasswordDTO;
import mju.cxf.entity.Admin;

import java.util.List;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author 乐昌新
 * @since 2024-09-26
 */
public interface AdminService extends IService<Admin> {
    Admin loginAdmin(AdminLoginDTO admin);

    List<Admin> getAllAdmins();

    Admin getAdminById(int id);

    boolean saveAdmin(AdminDTO adminDTO);

    boolean updateAdmin(AdminDTO admin);

    boolean deleteAdmin(Integer id);

    Page<Admin> selectPageByUsername(String username, int current, int size);

    boolean deleteAdmins(List<Integer> ids);

    boolean updatePassword(ResetPasswordDTO resetPasswordDTO);
}
